import { myget, mypost } from './index'

// 获取文章列表
export const getArticallist = (data) => {
	return myget('/artical/list', data)
}
export const getArticallistAll = (data) => {
	return myget('/artical/listAll', data)
}
// 修改文章
export const UpdateArtical = (data) => {
	return mypost('/artical/update', data)
}
// 模糊查询文章
export const SearchArtical = (data) => {
	return myget('/artical/findLike', data)
}
// 添加文章
export const addArtical = (data) => {
	return mypost('/artical/add', data)
} // 批量添加
export const addArticalList = (data) => {
	return mypost('/artical/updateList', data)
}
// 删除文章
export const delArtical = (data) => {
	return mypost('/artical/del', data)
}
export const getArticelById = (id) => myget(`/artical/getArticelById/${id}`)
